package Client;

import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

import GUI.GUIchatroom;
import GUI.GUIprivate;
import GUI.GUIstartpage;
import Mailbox.Mailbox;
import Mailbox.MailboxFTP;

public class ChatClientSendThread {
	private OutputStream os;
	private Socket socket;
	private MailboxFTP mbftp;

	public ChatClientSendThread(Socket socket, MailboxFTP mbftp) {
		this.socket = socket;
		this.mbftp = mbftp;
	}

	public void send(String message) {
		try {
			message = message + "\n";
			os = socket.getOutputStream();
			os.write(message.getBytes());
			os.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
